import request from '@/utils/request'

// 查询库存计算规则列表
export function listStockInfoJs(query) {
  return request({
    url: '/business/stockInfoJs/list',
    method: 'get',
    params: query
  })
}

// 查询库存计算规则详细
export function getStockInfoJs(id) {
  return request({
    url: '/business/stockInfoJs/' + id,
    method: 'get'
  })
}

// 新增库存计算规则
export function addStockInfoJs(data) {
  return request({
    url: '/business/stockInfoJs',
    method: 'post',
    data: data
  })
}

// 修改库存计算规则
export function updateStockInfoJs(data) {
  return request({
    url: '/business/stockInfoJs',
    method: 'put',
    data: data
  })
}

// 删除库存计算规则
export function delStockInfoJs(id) {
  return request({
    url: '/business/stockInfoJs/' + id,
    method: 'delete'
  })
}
